import http from '@/api'
// import type IAuth from 'IAuth'

const userUrl = `${import.meta.env.VITE_APP_API_ADMIN_URL}`

// 获取账号
const getDeptUser = (params: any) => {
  return http.get(`${userUrl}/user`, params)
}
// 重置账号密码
const setAccountPWReset = (params: any) => {
  return http.put(`${userUrl}/user/password/reset`, params)
}

const UserService = {
  getDeptUser: getDeptUser,
  setAccountPWReset: setAccountPWReset
}

export default UserService
